import Layout from "@/layout";

const adminConfigRouter = [
  {
    path: "/system-manage",
    component: Layout,
    redirect: "noRedirect",
    name: "SystemManage",
    meta: { title: "系统管理", icon: "system-settings" },
    children: [
      {
        path: "user-manage",
        name: "UserManage",
        component: () =>
          import("@/views/system-manage/user-manage/index"),
        meta: { title: "用户管理", icon: "agricultural-type-management" }
      }
      // {
      //   name: "Http://www.javaboy.org",
      //   path: "http://www.javaboy.org",
      //   // hidden: false,
      //   "component": Layout,
      //   meta: {
      //     title: "TienChin健身官网",
      //     icon: "guide",
      //     // noCache: false,
      //     link: "http://www.javaboy.org"
      //   }
      // }
    ]
  },
  {
    path: "/sensitive-word-manage",
    component: Layout,
    redirect: "noRedirect",
    name: "SystemManage",
    meta: { title: "敏感词管理", icon: "system-settings" },
    children: [
      {
        path: "sensitive-word-manage",
        name: "sensitiveWordManage",
        component: () =>
          import("@/views/system-manage/sensitive-word-manage/index"),
        meta: { title: "敏感词管理", icon: "agricultural-type-management" }
      }]
  },
  {
    path: "/qr-code",
    component: Layout,
    redirect: "noRedirect",
    name: "QRCodes",
    meta: { title: "二维码", icon: "system-settings" },
    children: [
      {
        path: "qr-code",
        name: "qrCode",
        component: () =>
          import("@/views/system-manage/qr-code/index"),
        meta: { title: "二维码", icon: "agricultural-type-management" }
      }]
  },
  {
    path: "/system-config-manage",
    component: Layout,
    redirect: "noRedirect",
    name: "SystemConfigManage",
    meta: { title: "生产系统管理", icon: "system-settings" },
    children: [
      {
        path: "user-log-manage",
        name: "UserLogManage",
        component: () =>
          import("@/views/system-manage/user-log-manage/index"),
        meta: { title: "用户登录日志", icon: "agricultural-type-management" }
      },
      {
        path: "operator-log-manage",
        name: "operatorLogManage",
        component: () =>
          import("@/views/system-manage/operator-log-manage/index"),
        meta: { title: "用户操作日志", icon: "agricultural-type-management" }
      }
    ]
  }
]
export default adminConfigRouter;
